/*    */ package com.zimbra.cs.redolog.op;
/*    */ 
/*    */ import com.zimbra.cs.mailbox.Mailbox;
/*    */ import com.zimbra.cs.mailbox.MailboxManager;
/*    */ import com.zimbra.cs.mailbox.MailboxOperation;
/*    */ import com.zimbra.cs.redolog.RedoLogInput;
/*    */ import com.zimbra.cs.redolog.RedoLogOutput;
/*    */ import java.io.IOException;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class DeleteConfig
/*    */   extends RedoableOp
/*    */ {
/*    */   private String sectionPart;
/*    */   
/*    */   protected DeleteConfig()
/*    */   {
/* 32 */     super(MailboxOperation.DeleteConfig);
/*    */   }
/*    */   
/*    */   public DeleteConfig(int mboxId, String section) {
/* 36 */     this();
/* 37 */     setMailboxId(mboxId);
/* 38 */     this.sectionPart = section;
/*    */   }
/*    */   
/*    */   public void redo() throws Exception
/*    */   {
/* 43 */     Mailbox mbox = MailboxManager.getInstance().getMailboxById(getMailboxId());
/* 44 */     mbox.deleteConfig(getOperationContext(), this.sectionPart);
/*    */   }
/*    */   
/*    */   protected String getPrintableData()
/*    */   {
/* 49 */     StringBuilder sb = new StringBuilder("sectionPart=").append(this.sectionPart);
/* 50 */     return sb.toString();
/*    */   }
/*    */   
/*    */   protected void serializeData(RedoLogOutput out) throws IOException
/*    */   {
/* 55 */     out.writeUTF(this.sectionPart);
/*    */   }
/*    */   
/*    */   protected void deserializeData(RedoLogInput in) throws IOException
/*    */   {
/* 60 */     this.sectionPart = in.readUTF();
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/redolog/op/DeleteConfig.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */